<template>
  <div id="app">
    <!-- 此处为 缓存/不缓存 -->
    <keep-alive>
      <router-view v-if="$route.meta.keepAlive"></router-view>
    </keep-alive>
    <router-view v-if="!$route.meta.keepAlive"></router-view>

    <!-- 此处应该 tabbar显示与否 -->
    <Tarbar v-if="$route.meta.showTab"></Tarbar>
  </div>
</template>

<script>
import Tarbar from '@/components/Tabbar/index.vue';
export default {
  components: {
    Tarbar,
  },
  mounted(){},
}
</script>


<style lang="less">
@import '~vux/src/styles/reset.less';
@import '~vux/src/styles/1px.less';
#app {
  font-family: 'Avenir', Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
}
</style>
